package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * app用户对象 app_user
 * 
 * @author ruoyi
 * @date 2021-07-13
 */
public class AppUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** app用户表id */
    private Long id;

    /** 账号 */
    @Excel(name = "账号")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 头像 */
    @Excel(name = "头像")
    private String headUrl;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 默认状态 */
    @Excel(name = "默认状态")
    private Integer state;

    /** 0默认注册用户 1手机唯一码用户 */
    @Excel(name = "0默认注册用户 1手机唯一码用户")
    private Integer type;

    /** 手机标识码 */
    @Excel(name = "手机标识码")
    private String uuid;

    /** 手机型号 */
    @Excel(name = "手机型号")
    private String phoneType;

    /** 使用次数 */
    @Excel(name = "使用次数")
    private Integer useNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setHeadUrl(String headUrl) 
    {
        this.headUrl = headUrl;
    }

    public String getHeadUrl() 
    {
        return headUrl;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setPhoneType(String phoneType) 
    {
        this.phoneType = phoneType;
    }

    public String getPhoneType() 
    {
        return phoneType;
    }

    public void setUseNum(Integer useNum) { this.useNum = useNum; }

    public Integer getUseNum() { return useNum; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("nickName", getNickName())
            .append("headUrl", getHeadUrl())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("type", getType())
            .append("uuid", getUuid())
            .append("phoneType", getPhoneType())
            .append("useNum", getUseNum())
            .toString();
    }
}
